cmake_minimum_required(VERSION 3.1)

project(DictoryServer)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add_executable(${PROJECT_NAME}
    src/main.cpp
    src/database_maneger.cpp
    src/server.cpp
    src/thread_pool.cpp
)

target_include_directories(${PROJECT_NAME}
    PRIVATE
    ${PROJECT_SOURCE_DIR}/header
)
# 添加第三方库
target_link_libraries(${PROJECT_NAME} sqlite3 pthread)